<?php

class ViewModel
{
    private $headHtmlArray;

    private $menu;

    /**
     * 
     * 
     */
    public function __construct(Menu $menu = null)
    {
        $this->headHtmlArray = new ArrayObject();
        $this->menu = $menu;
    }

    /**
     * Returns an ArrayObject which can be used to add HTML strings to the
     * <head>...</head> section of the HTML document.
     * 
     * @return ArrayObject
     */
    public function getHeadHtmlArray()
    {
        return $this->headHtmlArray;
    }

    /**
     *
     * @return Menu
     */
    public function getMenu()
    {
        return $this->menu;
    }

}